Tagged Questions

1
vote
8answers
75 views

Windows command prompt: how to get the count of all files in current directory?

What command would you use in cmd.exe to find the number of files in the current directory? Is there a powershell option here? Update: I was hoping to avoid dir, as I know there are 10,000+ files in …
0
votes
2answers
71 views

How to uninstall a software using batch file

I want to uninstall a software by calling a bat file. It must be automatically, without entering any parameters during the uninstallation. How to make the bat file which would be able to uninstall …
1
vote
2answers
41 views

Compare-Object gives false differences

Hello! I have some problem with Compare-Object. My task is to get difference between two directory snapshots made at different times. First snapshot is taken like this: ls -recurse d:\dir | …
1
vote
1answer
33 views
0
votes
1answer
38 views

Windows 08 R2 Backup : create task template

Hi, it is possible to create a backup template or somehow configure backup shedule besides regular daily backup to local disk. I want to backup whole system every sunday to shared network folder. I …
0
votes
3answers
74 views

Console apps don’t work in Powershell

I've inherited a Windows Server 2003 r2 box. I've got a Powershell script that I'd need to get running on the machine, but something seems terribly wrong with the system. For example, opening a …
0
votes
1answer
31 views

get-eventlog issue

I wanted to get a quick report of some log entries I saw on a server, so I ran: Get-Eventlog -logname system -newest 10 -computer fs1 | fl I got events back however the descriptions were all wrong. …
2
votes
2answers
41 views

IIS Administration PowerShell Cmdlets on Windows 2008 R1

I am trying to use IIS Administration PowerShell Cmdlets on top of Windows 2008 R1. According to this article you need to load these Cmdlets. However the options to load the cmdlets does not exist in …
1
vote
1answer
31 views

How to get DNS SERVER Statistics ? Total Queries per day ? (windows Server 2003)

Hi Pros, Using a script (powershell for example) How can i get the total Queries on a DNS Server (Windows Server 2003 - Active Directory Environment) ? Thanks
1
vote
2answers
36 views

Replce Kix script with Powershell

We are looking to replace our current Kix scripts with Powershell scripts and I was curious how to test group membership to map network drives. Our current kix script basically just does an if …
1
vote
1answer
26 views

PowerCLI Syntax: copy-harddisk

Whats the correct syntax for coping a vmdk with PowerCLI? I'd like to do the same as vmkfstools -i Get-HardDisk Machine1 | Copy-HardDisk "[DS] Machine2/test.vmdk" Produces: Copy-HardDisk : …
1
vote
1answer
33 views

Powershell 2.0 : issue import-Module in a background job

I launch a script in backgroung using Start-Job command. In this script, I load a module using Import-Module. The job stay blocked in the running state at the Import-Module step. The same behaviour …
1
vote
1answer
50 views

Use Powershell to find out what uses lots of memory (on 64 bit Windows)

How do I find out (in Powershell) what process/whatever uses the most memory? Edit: I am trying to figure out how to use Powershell to find out what's using all the physical memory in case Task …
0
votes
1answer
40 views

add-computer cmdlet cached password question

Hey SF, I have been working with Add-Computer, trying to get a script going to auto-add local computers to a domain. The code is good, but I cannot for the life of me figure out if there is a way to …
0
votes
1answer
41 views

How do I find out with PowerShell that my workstation dropped of the domain?

I use VMWare snapshots a lot and reverting to an earlier snapshot sometimes drops the computer off the domain controller. I am looking for a PowerShell script that would determine that the workstation …

1 2 3 4 5 11
15 30 50 per page