Invoke-command icacls on a remote machine
OK this is a bit complicated to explain but i will try my best i am running a powershell script from my machine which has novell client installed which causes issues with setting windows file...
View ArticleLast logon active directory
Best,I want to see the last logon of all users in our AD (win2k8). but im such a noob in scripting etc. I just found this script on here what does it do? i want to have a script that lets see the...
View Article7z extraction , executing a dos command, variables not replaced
HelloFrom a powershell script I would like to extract an aarchive to a particular directory using 7-zipThe dos command is:C:\Progra~1\7-Zip\7z.exe x $rep\$archive -o$dirwhen i run the script, it seems...
View ArticleCSV Updation
I am new in powershell and working on a script where I have to update the value in CSV using data from the csv itself. e.g CSVA,B 100,40 100,33I want to have "C" column added in CSV which which have...
View ArticlePassing a value from a job to a progress bar in a form - help!
HiI currently have a form that displays a progress bar - the idea is to get this progress bar moving along as and when the percentage value passed to it from a job, however I feel a bit out of my depth...
View Articleadd custom colums to a output
I Tired the same question in the diff thread. But belive it was very confusing. I am starting a new thread for it.I have a CSV file with...
View Articlesend results of Invoke-sqlcmd to an array
why doesn't it work... get a list of servers from a text file and it works.... $servers = (get-content .\serverlist.txt | ? {!$_.Contains("#")})foreach ($server in $servers){Invoke-sqlcmd...
View ArticleEditing a local user
How can I change the check box where it says "Password does not expire" from unchecked to checked with out having to create a new user all over again.This is what I have so far.$Computer =...
View ArticleWhy does Select-Object return more than requested?
Why does the following command return more attributes than in the Select?$obj = Get-VM | Select VMName,State; $objVMName : blah-blah State : Off PSComputerName : host RunspaceId :...
View ArticleChange of reply SMTP address for addresses that already exist - in bulk
Hi all,I was redirected here after initially posting on http://community.office365.com/en-us/forums/148/p/186747/546133.aspx#546133Questions asked there is as follows. Any assistance...
View ArticleAdd a column in this script to put an '*' if the PercentFree is below 10%
I want to add a column to the output called ATTENTION. In that column I want to display an "*" if percentfree is < 10%Any suggestions?$servers = get-content servers.txt foreach ($server in...
View ArticlePoweshell remote application(.cmd) deployment
Hello all, I am beginner with powershell and struggling to get this around with the help from different sites, My requirement and scenario is I have a windows server 2008(rktdepy) with power shell...
View ArticlePowershell remoting for Lync failing
Hi, I am unable to remote to a server to import Lync modules. Here is the code (w/ server name removed): $credential = get-credential $session = New-PSSession -ConnectionUri 'https://<enter...
View ArticleDomain unjoin script on windows 7 and windows xpt
The following script works find for domain name change. Is it possible to use powershell script with Domain Admin rights. Because once i apply the following command which will continuously ask the...
View Articleintermittent : The term 'get-date' is not recognized as the name of a cmdlet,...
I have developed a batch harness whereby all scheduled tasks (W2012) invoke a common powershell script that acts as a wrapper to all our housekeeping jobs.The first step in the wrapper is to create a...
View ArticleWeird problem with Enable-WsmanCredssp
Hi guys, I have two serves, server A---------Host ServerServer-B-------- Windows 2008 r2 server with visual studioIm running some powershell commands from a c# program from server B to Server A which...
View ArticleCreate table on sql azure using powershell
hey i am new with powershell so i was wondering as we can create a server and database on azure using powershell is it also possible to add table to this database through the powershell script .if yes...
View ArticleError While uploading to windows Azure using powershell Script
I am uploading the application to windows Azure using the powershell ScriptNew-AzureDeployment-ServiceName $servicename -LabelMySite-Slot"Staging"-Package"C:\Users\ronak\Documents\Visual Studio...
View ArticlePowershell Script to delete all folders in folder "everywhere" called "Temp...
Hello I need to find all instances of a folder on a z: drive (it could be in many, many places, under many many folders) and delete its contents of where ever its found ( but leave the folder). Is...
View ArticleProblems with Hebrew display on PS AD Query
When i run PS scrip fo lastDateTime user logon i get list of user that in english and part of them in hebrew.all the users that in hebrew i get gibberish. how i fix that it display HEBREW
View Article