query one service on computers help
Windows 2008 R2 OS We have about 100 Windows 2008 R2 computers and just find out that one service name abc (ex) is missing on several computers. I need to find out whether this service is missing on...
View ArticleSimple PS 3 Module Not Exporting Variables
Hello,I have been working through issues with automation and modules for a few days, but no matter what I try I can't get a variable to export from a function to another function within the same PSM1...
View Articlehowto create a powershell script to search the C drive for any *.pst files...
I have a bunch of people who are saving their pst files all over the place. how do I write a script that does the followingsearches the C:\ drive for *.pst and copies them all the E:\pstfiles
View ArticleHow to verify GPO is linked to all OU's
PowerShell Gurus,I need to verify that the Default Domain Policy GPO is linked toall the OU's in my domain.How can I generate a list of OU's where the Default Domain Policy is NOTlinked?I'm close, but...
View ArticleAccessing Frames with internet Explorer
Hi,I am using PowerShell to navigate to a website using the following code:$ie = new-object -comobject internetexplorer.application$ie.visible =...
View ArticleSearch MS Word for Exact Match
I've got a script that opens an MS Word document, then searches through a directory for each image file (.jpg), then does a find and replace using the filename as the search string, and inserts the...
View ArticleCreate folders and subfolders and provide the permissions
I need to create a folder and subfolders, share the subfolder, and provide the permission.For Ex:-1. Create the folder within C:\ -- Kozos2. Create a folder within Kozos -- Company13. Create a folder...
View ArticleHow do I expand a ActiveDirectorySubnetCollection so I can view all elements...
Hello,In the following, I list SiteName, Location, Subnets, and Severs, however I don't see all the servers or the subnets, presumably because Subnets are an ActiveDirectorySubnetColletion and Servers...
View ArticlePowerShell V2: all white background?
I have tried, and all I can get is white behind the actual text, while the rest of the console screen is still all black. Which, um, looks like crap. ;)Is there a way to get black text on a full white...
View ArticleWindows Management Framework 3.0 does not install on Windows 2008R2 SP1 Server
I have tried to Install the below update on my Windows 2008R2 SP1 Server and I get error as illustratedhttp://www.microsoft.com/en-us/download/details.aspx?id=3459564-bit versions:...
View ArticleParsing YouTube URL
Is there PS codes to get the source URL $u from YouTube URL (e.g.:http://www.youtube.com/watch?v=Ioq2gp2pJu4), so I can use the following or other way to download video. Found some codes on Internet...
View ArticlePhone number scheme change
I've recently been tasked with changing the format for our phone numbers in AD, and I'd like to not have to do this manually if possible. I was able to update telephone numbers that are common (from a...
View ArticleGet CPU and RAM usage for specific process and output to log file
Hi,I want to monitor CPU and RAM usage for 1 specific application and extract it to a txt file. Using get-process gives me all the different values but I just want CPU value. Below is my script, when I...
View Articlehow to open IE browser in private mode with powershell script? $ie =...
How can I open IE, in inPrivate Browsing mode using PowerShell script?$ie = New-Object -com internetexplorer.application; $ie.visible = $true; $ie.navigate2("http://bing.com"); while ($ie.Busy -eq...
View ArticleHow to close a property page programmatically (script user clicking OK or...
I have a need to call the PRINTUI.DLL from a PowerShell script. (Windows Server 2008 R2). The problem is that PRINTUI.DLL is opening a property sheet and waiting for the user to click OK or CANCEL to...
View Articleadd-pssnapin Microsoft.Exchange.Management.PowerShell.Admin
I have a script (below) that was designed to be used by people who do not have access to Exchange. The idea is to check if ActiveSync is enabled for the user, it gives the ability to enable or disable...
View ArticleAdd-PSSnapin bug... Can anyone confirm?
Environment:Server 2008 R2Exchange 2010Description:We had the following snippet in a script that ran fine under PS 2 when launched from a shortcut with the command:...
View ArticleStuck at setting Manager field in AD by pulling the attribute from Oracle...
Hi, I need help in AD powershell command wherein I am pulling Employee manager from HRMS Oracle database & setting it on AD user account. Let me segment all question into small small parts. 1)...
View ArticleCan multiple Powershell v4 DSC configuration objects be combined on a machine?
I'm working on configuring servers using Powershell Desired State Configuration (DSC). I have several different groups of IIS servers. The configuration for all of them is about 90% identical, but...
View Articlepowershell script for oracle data query / insert / updates
Hi Guys, can anyone please suggest a script to query/insert/update the table in oracle 11G database. I googled for this but did not get any handy menthods briefly explaining this. I am able to open a...
View Article