Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Browsing all 8583 articles
Browse latest View live

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 Article


Adding 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 Article


Help 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 Article

Office 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 Article

Need 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 Article


How 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 Article

WMI 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 Article

Windows 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 Article


Copy 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 Article


All 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 Article

Copy-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 Article

Can 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 Article

SharePoint 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 Article


Image may be NSFW.
Clik here to view.

My 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 Article

PowerShell 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 Article


PowerShell 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

How to delete an account

Could someone explain how to delete and account.Thanks,

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 Article

PS 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 Article

Rackspace 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
Browsing all 8583 articles
Browse latest View live