Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

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 Article


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


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

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

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


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

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

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


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


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

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

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

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


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

intermittent : 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 Article


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

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


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

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

Problems 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
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>