Run EXE on a remote pc
Can you help me with the following code, i mean i have tried all the following script blocks to execute an application on a remote computer and i have failed to required task with the all the...
View ArticleChanging Computer Descriptions Remotely using Powershell
Hello,I am the Network Admin for a small college that has a little over 300 computers. I want to be able to use PowerShell to change the computer descriptions on those machines from my desk. I have...
View ArticleAccess MS Word documents in SharePoint with PowerShell.
Could someone help me with the following task? I have hundreds of MS Word documents on SharePoint. I need PowerShell script to be able to access documents in SharePoint, enumerate them and edit if...
View Articlecall/execute a file .bat
Hi, guys! How to make an algorithm in powershell (ps1), which call/execute a file .bat? And its result must be stored in a variable. Please can you show some examples. Note: This .bat contain...
View ArticleConvert HTML file/table to XML/Excel
Hi,I am using a script to export mailbox audit log, but it is by default generating the report in HTML, Our requirement is to generate the report in CSV or in Excel file and also wanted to put a date...
View ArticleRemote logon server query
Hi all, I have been racking my brain for two days now and I can't seem to find anything on the net that can point me in the right direction. First let me say I'm a novice in PowerShell so any help...
View ArticleTechNet Library syntax error - Using the Compare-Object Cmdlet
There is an error in one of the examples on the following page: http://technet.microsoft.com/en-us/library/ee156812.aspxAbout two thirds of the way down the page is a section introduced with:Notice...
View ArticleCopy Folders recursive with specific modicication date/time
Hi GuysIm searching for s script that copy folders recursively from my server to another place with a specific modification date/time.Copy files from one place to another is easy, only how to create a...
View ArticleScript to export users from a specific group and display SamAccountName and...
Hi there,PS newbie!I want to write a script or a line that will export users from a certain AD group and list/export them in a csv displaying the following 2 attributes:- SamAccountName-...
View Articleactive directory web services binding http
HiI will like to know if the Active Directory Web Services have a http-binding for accessing to it, with a java client for example ? Our Active Directory is 2008R2. If not, is that the 2012 version...
View ArticleGet all AD active users export to CSV by OU
Dear all,I need your help in orcer to export all AD users from AD by powershell.I need to export to CSV with all info about the user like ( name, telefone, office, email, address, user logon name, Job...
View ArticleGet all users in AD Group
Hello.Iam using this powershell command to list the users in a ad groupGet-ADGroupMember -Identity "Group name" | foreach-object { Write-Host $_.SamAccountName }and it seems to work just fine.Here is...
View ArticleBreaking $Env:Path into an Array of Paths
Hello Sirs,Is there a way to break the $Env:Path into an Array of Paths; so that I can "divide and rule" them!
View Articleload csv file to sql table
I need to read a folder and process different formatted (csv) files and load to SQL table. THe file format of one of the csv looks like this: (1) (2) 3 4 5 6...
View ArticlePowershell Set-Acl use without changing owner?
I have a folder, and I am trying to grant full permissions to another user, like so: $Acl = Get-Acl "C:\MyFolder" $AccessRule = New-Object...
View ArticleC# - Powershell SDK - How to run a .cmd script from within Runspace?
Hi All,As I'm new to Powershell programming, started looking for samples in msdn and other sites. Finally I found something exactly what I was looking for at How to run PowerShell scripts from C#....
View ArticleImporting CSV and filtering it via TXT file
Hello everyone. Please pardon me if I don't make too much sense with what I'm trying to accomplish. We have a database that extracts data into a CSV file nightly. This database contains a lot of...
View ArticleEnter-PSSession: WinRM cannot process the request, Kerberos authentication...
Hi!I've configured PowerShell Remoting on the server using Enable-PSRemoting commandlet.But when I'm trying to connect to the server I'm constantly getting the following error:PS C:\Users\sergeyp>...
View ArticleOutput line separator
I wrote a quick script to query a list of servers to check for active sessions on some terminal servers, but the output is ugly with no line separation between each server. Is there a way in my script...
View Articleget-content
How can I tell get-content to only output lines that (as of the moment) are being added to the text file?my code get-content locationOfTheFile.txt -waitseems to load the entire file.I am looking at a...
View Article