Top Contributors Awards! Spanish Windows Server Video Stash! NEW SharePoint...
Top Contributors Awards! Spanish Windows Server Video Stash! NEW SharePoint 2013 PowerShell script! Gurus being AWESOME! Plus - Thinking out the box, how to consume PeopleSoft employee data another...
View ArticleProblem with ie.Document.getElementById - "You cannot call a method on a...
Hi, I've built the following script that supposed to add text in the Google search box: $url = "https://www.google.com/" $search_input="something" $ie = New-Object -com internetexplorer.application;...
View ArticleUnderstanding $_
I have this code I got off of this very site that works. It will add double quotes around each item it reads. Get-Content c:\reports\Quotes\machines.txt | foreach { "'$_'" } | Out-File...
View ArticlePowershell csv output (content)restructuring
I am trying to change the output of my csv file, at the moment the content is coming out as each new line is being outputted on a new line as well so as below:NT AUTHORITY\SYSTEM,"Allow FullControl,...
View ArticleChecking if a multi-valued object is in a collection of multi-valued objects
HelloCan someone please help me with the following questionif I have a simple array like this$A = @(1,2,3,4,5)$B = 5$A -contains $B TrueHowever if I do $A = @(get-service)$B = Get-service |...
View ArticleExport to custom object with variable columns to CSV
I'm wrting a script collecting the accesscontrol of applications, the items in accesscontrol can vary from one to many.(This data is originating from a xml file).The problem I'm facing is that one of...
View ArticlePowershell scripting easter eggs.
This might be an odd request, but i'm looking for funny/interesting things to add to PS scripts as "easter eggs".Hiding the things in the code wont be an issue, i just want some ideas of what to do.
View Articledelete user accounts and their home folders
Hi,For a global firm, I need powershel command to run againt a txt file or csv file to find left users in AD and delete their accounts from AD and their home drives from globally dispensed file...
View ArticleRunning PowerShell script as different user
HelloI need a way to run a PowerShell script as a different user (I do not mean RunAs Administrator)I see some examples of user Start-Process with the RunAS option but this is to RunAs Administrator as...
View ArticleHelp with a script to query win32_service
Hi,I have the follwing script that has been created to help me identify the version of EMC Powerpath installed on my Windows servers.The script is working fine, but instead of ending having queried the...
View ArticleCompare files based on LastWriteTime if basename matches
I have two sets of files, one folder contains one filetype and another folder contains the other filetype. Folder 1 has .filetype1Folder 2 has .filetype2Every file in folder1 has a matching partner in...
View ArticleScript to install multiple .msu Windows Hotfixes
I am writing a simple script that will install multiple hotfixes that cannot be added to the WSUS catalog. The hotfixes are placed on a share and are available to any new builds of the OS. All of the...
View ArticlePowershell script for CSV permissions not displaying "allow full control,...
Hi, I have a script that runs in powershell and check security permissions on folders and writes them to a csv file. In my csv file I want it to output this to include "Allow Full Control, this...
View ArticleI cannot post
When I try to create a new post in a forum, I get the error that I don't have permission.I don't see any options in my profile for that. Can anyone help?TIAAlex
View ArticleControlling Windows Update Using PowerShell
Using PowerShell to manage Windows Updates on computers follows along the old "even if you could, should you?" adage. From a techie's perspective that answer is always a resounding "Yes!" In the...
View ArticleUsing PowerShell to Build your Azure VM Environment
In a previous post I wrote about Using a Hyper-V VHD in an Azure VM. Today I’d like to show you what my next steps were. My goal with using Azure is to create an lab environment for student that fits...
View ArticleUse PowerShell to Apply Central Access Policy
Q: How can I use PowerShell to set the Dynamic Access Control Central Access Policy that's applied to a folder?A: Dynamic Access Control allows Central Access Policies to be created that contain...
View ArticleWindows 2008R2 last successful backup
I have a system monitoring system that expects to see a singly code returned to it when it runs a script. The code I'm looking for is the number of days since last successful backup. The even id is 4...
View ArticleHow to get MS Office product key
Hello all, I would like to ask if is possible to get MS Office Product key from registry using powershell. I have one script which gets Windows Product key I need same think for office. Is it possible...
View ArticleHow can I force array context in a Powershell script
Hi,Create the file c:\temp\temp.txt with the single line "cd foo" (without the quotes).Then try this:$dirs=Get-Content c:\temp\temp.txt | Where {$_ -match "^cd "}$dirs[0] (equals "c")Now add the line...
View Article