PowerShell is a command prompt and a scripting environment designed for Windows system administration.

learn more… | top users | synonyms (1)

0
votes
0answers
5 views

Batch File with Powershell TASKKILL only the user processes

I'm trying t develop a batch file that closes all the user processes in Windows 8, by using Powershell. I use the code: Taskkill /f /fi "USERNAME eq Dave" But when i run the batch file, it does not ...
0
votes
0answers
10 views

How to force windows XP to stay more time on welcome screen during logon?

Does anybody know how I can force Windows XP to wait longer than normal on the welcome screen during login process until my application initialization end up?
0
votes
1answer
15 views

Is it possible to find all the video files using powershell?

Recently my colleague asked me is there way to find all video files using powershell. I told him that using Get-childitem we have to include the video file extension in -include option. He told that ...
0
votes
0answers
6 views

How do i set Identity of COM+ server type application to Network Service in power shell

I need to do the following thing. Create com+ application -> set activation type to Server type-> set identity as Network service->Add user group under creater owner. I am able to set activation ...
0
votes
1answer
26 views

I need help find the error in powershell script

Trying to get my script to work and need some help here is my code. #excel #open ap $XL = new-object -com "Excel.Application" $XLbooks = $XL.workbooks $netci = ...
0
votes
4answers
45 views

Delete lines based on time stamp in text file PowerShell

Novice at PS here, but I have a log file where each entry is written on a separate line with this date format: 2013-04-29 08:55:09,261 I am trying to use PowerShell to delete all lines older than 30 ...
0
votes
1answer
22 views

Export the powershell output to text tab delimited format

I am here to know how to save the powershell script output to a text tab delimited format . Example - How to export the output of below powershell script to text tabdelimited format.. ...
0
votes
1answer
19 views

How to print Exchange server name to screen for a given username

I am writing a script that takes username and find its mailbox server. this is what I tried: $mailboxDetails = get-mailbox -id MyUser write-host $mailboxDetails *MyUser is my username in AD this ...
1
vote
1answer
27 views

Delete first four rows in Excel with Powershell

I have a powershell script that opens an excel file, re-assigns a blank password, and then saves the file. I want to add a task to the script to remove the first 4 rows of the excel file before ...
0
votes
0answers
20 views

How to execute multiple powershell Commands in Synchronous using C#? [duplicate]

How to execute multiple powershell Commands in Synchronous using C#?
0
votes
0answers
18 views

System.Management.Automation outside of dotnet framework ruby

Is it possible to use the Windows Powershell SDK or dll from a language that is not part of the dotnet framework- like ruby 1.9.3? I was hoping to use something like FFI or win32api gems from ruby ...
1
vote
0answers
15 views

Using AsyncCallback in Powershell

I have to call a method on .NET object which is defined as IAsyncResult BeginListMetrics( ListMetricsRequest listMetricsRequest, AsyncCallback callback, Object state ) Is it ...
0
votes
1answer
20 views

Query Folder tree for Size and export to a log on a server

Im looking to query the my documents folder for size, but also list the subfolders for size and export to a directory. I found some of this online and am trying to tweak to my needs but having issues ...
0
votes
3answers
22 views

Setting Powershell colors with hex values in profile script

I know I can change PowerShell console colors by setting in my profile something like: $Host.UI.RawUI.BackgroundColor = "White" Clear-Host However in the Powershell Console one can go to the Color ...
0
votes
1answer
23 views

OSQL Incorrect syntax - Character Encoding - Powershell Scripting Help Needed

So we use osql to run in stored procedures as part of our build process. We use a project with an sp folder that gets published with applications as part of a build pack. I used Visual Studio to ...

1 2 3 4 5 652
15 30 50 per page