Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

powershell print as another user

Status
Not open for further replies.

ameyUK

IS-IT--Management
Dec 20, 2006
76
GB
Hi there,

hope someone can help me with this problem please.. Below is a script to print a word document but i want it to print as different user not as user who is logged in..

$objWord = New-Object -comobject Word.Application
$objDoc = $objWord.Documents.Open("c:\test\new.doc")

$objDoc.PrintOut()
$a = $objWord.Quit()

A user will upload a file (done via php) with their username and password. then the php will pass the argument to powershell and I want the above script to print as that user using their authentication..

thank you so much

ameyuk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top