Quantcast
Channel: The Official Scripting Guys Forum! forum
Browsing all 15028 articles
Browse latest View live

XML addition in PowerShell

I am trying to do some XML manipulation in PowerShell. I use online search to to find examples. I have a simple XML file I am trying to edit (Cut down to bare minimum for testing).<?xml...

View Article


Powershell - CSV to Excel

(i checked the suggested threads before posting) I want a powershell script to convert CSV files to Excel.. Now i found posts , e.g....

View Article


Obtain Unicode encoded byte value from a Unicode character

I have read in many places that if we want to retrieve the encoded byte value from a Unicode character that you should do the following.  I'm doing everything in Powershell ISE as it has better...

View Article

Convert PDF to Word

I have a PowerShell script that converts Word documents to PDF.  Now that Word 2013 can read PDF's directly and can then save the PDF as a Word document, is there a way to do so in PowerShell?Thanks...

View Article

how do i call windows commands from powershell?

All,i have a windows commands to rename,copy a folder on remote machine. i will have to call/execute this commands with powershell script.Any help would be much appreciated

View Article


Script to disable SNMP for all mapped printers

I'm looking for a script to disable SNMP on all printers mapped to a single computer.I'm fairly new to scripting and I'm having troubles finding if this is even possible. We've been going through and...

View Article

windows7 VBScript open file dialog box - fakepath

is there any solution in vbs to handle c:\fakepath?Windows7 x86 code: Option Explicit  Function ChooseFile()     Dim Result     Dim IE : Set IE = CreateObject("InternetExplorer.Application")     With...

View Article

Adding additional URL to script

So new here, just joined but read a few of the things on here,I am fairly new to scripting, well actually pretty darn new lol.  But im learning as I go how to edit and manipulate it to do what I...

View Article


Powershell script to find empty folders in a Directory

Below script finds all empty folders, but also list the folder which has empty folders inside.$a = Get-ChildItem C:\Scripts -recurse | Where-Object {$_.PSIsContainer -eq $True} $a | Where-Object...

View Article


Batch script to check a service is running on remote servers

Hey GuysI have the bare bones of a script below . What i want it to do is (1) Check from a list called servers.txt(2) Check is a particular service is running(3) If it's not then start it(4) Echo the...

View Article

PowerShell: How to use a PS-function launched from an application that can...

I have made a function in a psm1-file. To make it accessible by whoever runs PS, I put it in $PSHOME\Modules\<folder with the name of the PSM1-file> My backup application can run CMD-files before...

View Article

PowerShell - Broken ACL

Mission:To run a MSI install, then set "Modify" rights to a destination folder.Issue:Getting Runtime Exceptions & DotNet Exception errors. Please help.Script:Clear-Host set-executionpolicy bypass...

View Article

Image may be NSFW.
Clik here to view.

upload RDL file through powershell

I tried using powershell, it didn't work. It's gets executed successfully but no output result. Am I doing anything wrong? Below is the script created by Randy Aldrich Paulo. But when I tried using, it...

View Article


Powershell and Hyphens

I am using powershell to list security events on remote servers.  I have come across a problem because some of our servers contain a hyphen in their name. get-eventlog -logname security -Computername...

View Article

New-WinEvent - Creating a provider - PowerShell

Hello,I'm trying to use new-winevent with a custom event provider.  I managed to use New-eventlog to generate a new log as well as a new source but now when I try and create a new event it tells me...

View Article


Rename home directories (Folder Redirection)

I have a very simple PowerShell script that renames user logons (sAMAccountName, UserPrincipalName).  I'd like to also include a way to rename their associated home directories.  Folder Redirection is...

View Article

Active Directory: Update the manager field when the manager is in a different...

Hi guys,I have a script that I'm importing Active Directory attributes from our HR database via a CSV file.  I've got everything working except the Manager piece.  In our environment we have users in...

View Article


SCCM Module for Powershell

Hi,I have SCCM 2012 already setup and running but I am umable to find ConfigurationManager.psd1 module in "C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin"Can anyone help me to...

View Article

Forest wide query against all OU's in all Domains

Hello.In our forest we have 35 domains and OU structure of all domains are identical. Since we need to track down the changes in directory service ,I have a simple PoSH script which queries the number...

View Article

PowerShell vs AD vs PHP

We have a 2008 domain and are running ADWS http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=2852 I am running powershell from a php page using shell_exec under iis. When i use...

View Article
Browsing all 15028 articles
Browse latest View live


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