ConvertFrom-Json cannot read my Json
I have posted the attached json on two validation sites and it was validated but if I pass it on the pipeline to convertfrom-json I get an error. Other json files I have tried work. { "Cars": [...
View ArticleAdding an arbitrary column such as current date to the result set of a...
I have a nice Netstat script that I modified from http://blogs.microsoft.co.il/blogs/scriptfanatic/archive/2011/02/10/How-to-find-running-processes-and-their-port-number.aspxI want to add an extra...
View ArticleHelp with Get-ADComputer
This is the bit I run get-adcomputer -SearchBase "OU=Department,DC=Company,DC=de,DC=us" -filter "Passwordlastset -lt '2/7/2013'" -properties *| Select name,distinguishedName,passwordlastset |...
View ArticleOffice 365 Script binding problem
I am working on a script that doing auto licensing for Office 365 Users, here is the script $password = ConvertTo-SecureString "password" -AsPlainText –Force $credential = New-Object...
View ArticleNeed help in getting a special AD Group
Hi experts ;-)I'm having a Problem with searching a special Active Directory Group:I've build two Groups: Info and Test. Info is a Distribution Group. Test a Security Group.I tried to get the Info...
View ArticleHow to monitor Application Request Routing via PowerShell
Today I want to discuss with you how to monitor Application Request Routing via PowerShell script. In case that you are wondering what ARR is, probably you have to give a look at following link:Read More
View ArticleWMI CIM-plified Part 3: Remote Systems Management
We've been exploring the new world of CIM in PowerShell 3.0. Where this really gets interesting is when it comes to remote systems management. If you look at help for Get-CimInstance, you'll see there...
View ArticleWindows PowerShell: Workflow activities in depth
When writing a workflow in Windows PowerShell, you need to remember that every command has to be translated into a Windows Workflow Foundation (WF) activity or an InlineScript activity.Read More
View ArticleCopy sections from a text file out to another text file
I'm new to powershell, but I need to read a text file and copy sections out to another text file. Is this possible? I need to read the first text file line by line until I come to a specific word,...
View ArticleAll Users Report
Dear,I am looking for a script that could generate ALL users report which should include:DN, CN, FirstName, LastName, DisplayName, Email , TelephoneNumber, Mobile, Description, Office ,pwdLastSet,...
View ArticleCopy-Item or Robocopy
# Hi,# I would like to use a simple copy by Copy-Item , but criteria is to exclude a big folder while copying named "Virtual Machines": copy-item...
View ArticleCan I save body emails from specific sender to text file.
I want to save all emails (only body of that emails) from sender test@test.com to text files named as part of title this emails (titles are: <text> day_month_year number) in path...
View ArticleSharePoint Service Issues.
I am having configuration issues. Someone has already installed and configured and missed few services like Excel Services, Performance Point, Search Server and few more. I am unable to find the...
View ArticleMy Options for Invoke-Command
I'm running into a real road block. I need to execute a method on a .NET COM object remotely. The only way I know to do this on a remote computer is through invoke-command. The problem is security My...
View ArticlePowerShell One-liner: Getting the List of Available ConfigMgr Cmdlets
Configuration Manager 2012 SP1 contains a slew of new PowerShell Cmdlets to help manage and manipulate your ConfigMgr environment. If you'd like to get the full list of available Cmdlets, you can use a...
View ArticlePowerShell One-liner: Quickly Finding the IP Address for Hostname and Vice Versa
If you are required to locate either the IP Address of a hostname or the hostname associated with an IP Address, use these quick PowerShell one-liners to get the job done.Read More
View Article$PrinterList = IMPORT-CSV C:\printersL.csv
Need to include a csv file command belowLocation.ps1$printer = Get-WmiObject win32_printer -Comp PPR235QFLS01| Where-Object { $_.name -eq "OTT235Q-354A-X7535" }$printer.Location =...
View ArticlePS 101: Checking and Setting PowerShell Execution Policy
One of the first steps to working successfully with PowerShell scripts is to correctly select the Execution Policy. If the Execution Policy is too strict, the scripts you find on sites like...
View ArticleRackspace fluffs .NET cloud support
Rackspace is making overtures to Microsoft users by broadening .NET support for its cloud and managed hosting, though these devs may be increasingly swayed by Azure.Read More
View Article