Installing Windows6.1-KB2506143-x86.msu breaking psremoting
So we use powershell for everything and under 2.0 all is good all setup via GPO. However if we install that patch it breaks our remote management.I am just looking for ideas on why?
View ArticleUsing PowerShell to download all security updates to a folder
Hi Gang, We are looking for a way to use PowerShell to download all security updates to a folder so we can use this for our image build. Has anyone done this before and has a solution they can share...
View ArticlePowerShell Script to find all instances of a named folder and delete all...
I am barely a beginner to scripting and PowerShell but I need to come up with a script that I can schedule to run on the a file server weekly.I need a script will find all "Example_Data" folders within...
View ArticleHow do I take selected part of string?
$string = "filename:pizza.jpg/"I want to end up with "pizza.jpg". I know the colon and / will always be there. If not, for any reason, I need to capture it came back not as expected.
View ArticleDisable bluetooth device
Hi,Is it possible to disable bluetooth module in device manager without loading additional module on Powershell?I' ve found something like that$bluetooth = Get-wmiobject Win32_PnPEntity | where...
View ArticleHow to read a text file and split data into separate files
Hello,I have a text file with the following move-clustergroup data:Move-ClusterGroup "SCVMM VM1 Resources" -Node HOST1 Move-ClusterGroup "SCVMM VM2 Resources" -Node HOST1 Move-ClusterGroup "SCVMM VM3...
View ArticleHaving Trouble Passing Parameters to PS 2.0 script
I am very new to PowerShell and I am trying to write a script to help our analysts add servers to the domain. I am running PS2.0 on Win7. This script works like a charm when I write in static values...
View Articlelooking to get volume stats on cluster storage via PS
I have a disk in the cluster (NOT a CSV) called 'share'I can run get-clusterresource share and it returnsPS C:\Users\blake> get-clusterresource shareName State...
View ArticleDate Modified with increment of 1 for a hole year of files
Hi,I have a folder called 2013 that contains about 20 folders, each containing rar files for each day of the year so far. They are backups but I've discovered that some days the backups didn't...
View ArticleWhy WebClient DownloadComplete Event is not executed
$webClient = New-Object System.Net.WebClient $Global:downloadComplete = $False Register-ObjectEvent $webclient DownloadFileCompleted ` -SourceIdentifier WebClient.DownloadFileComplete `...
View ArticleSimple Question (I hope) for ScheduledJob
Hello All,I am trying to teach myself Powershell and currently, I am trying to make a script to run a ScheduledJob to backup a local folder onto a network share.I finally found out why my script wasn't...
View ArticlePlease clarify referencing System.Uri assembly.
I've been learning some C# and using PowerShell a lot lately, but something in PowerShell isn't working out for me, and I cannot find the MS doc that explains to me why.Please help right quick:In my...
View ArticleAssistance with Get-content to parse data from one file to create many files...
Hello,I've received help on my script to read a large file and using Get-Content and Select-String to create multiple files. My script works like a charm and looks like this:$input =...
View ArticleCompressing Log Files from Multiple Sources?
I need some help with a problem I'm facing at work. I've been tasked with developing a script to take video files older than a day stored from multiple directories and placing them in zipped folders...
View ArticleFormat result of AddDays?
This command does what I am seeking: get-date -f "yyyyMMdd"However, I want it for the previous day: (get-date).AddDays(-1)...but I cannot figure out how to format it after AddDays.Incorrect:...
View ArticleDynamic menu construction ($Host.UI.PromptForChoice)
Hi guys,here I am (again!) and I need some help (again!!)What I am trying to do:- Get the list of IP address on localhost- Use that list to build a menu where each IP address is a menu option- When the...
View ArticlePowershell script to compare AD UserObject Group Memberships in Excel
Greetings, Venerable Ones,Lots of organizations use Global Security Groups. I have been working on a script that gets a list of users, lists all of their groups, and then creates a matrix in excel to...
View Articleget-aduser not finding user object
helloGet-aduser not finding newly created user object created via ADUC. If I use new-user cmdlet to create the user I can turn around and fine the user Immediately.I create a new user object 'Testuser'...
View ArticleExchange Powershell Export has stopped on sent Items folder
I'm trying to export a users mailbox to a PST file. The mailbox is around 9.6GB. It's been going along fine for the last 3 hours, but now it has stopped on 10867/16047 of the sent Items folder. What...
View ArticleOpen a web browser and pass logon credentials
Hi,I am trying to write a script to open a browser and login to a page that uses a username and password field . It's not runing in IIS and the username and password are just on the form so I am...
View Article