Quantcast
Channel: Windows PowerShell Forum
Browsing all 2562 articles
Browse latest View live

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 Article


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


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

call/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 Article

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


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

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

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


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


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

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

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

Breaking $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 Article


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

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


C# - 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 Article

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


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

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

get-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
Browsing all 2562 articles
Browse latest View live


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