Quantcast
Channel: PowerShell.org » All Posts
Browsing all 13067 articles
Browse latest View live

Reply To: Group Resource encrypted credentials issue

Do a favor and bug that in Connect.Microsoft.com anyway. The resource should provide a more meaningful error message when you do what you did. It’s not doing input validation.

View Article


Reply To: Write-DfsrHealthReport on server 2008R2

(that said, the Windows 8.1 RSAT may include those cmdlets also, although whether they run against older servers you’d have to test)

View Article


Reply To: Removing "test" configuration from a machine during...

hi, Okay, now we are on the same page. That would be the Consistency engine talking to your eventlog. Get-ScheduledTask -TaskName consistency Or open up taskscheduler and browse to...

View Article

Reply To: Installing .MSU Via Powershell & PSexec

Thank you Peter for replying…. Am afraid that this didn’t work either. I put the updates in an accessible share folder on the server and surely changed to our server name, when I ran the script it...

View Article

alright im breaking down, I need logic help…possibly other things

Alright so I am breaking down…I need your help figuring out the logic I need to write for this function to work. What this function does (or what it is supposed to do): Look through our AD environment...

View Article


Reply To: Running Command in Powershell

Worked perfectly. I thought i wrote it out similar to that, but I used double quotes. If i did I wonder if the double quotes was causing an issue. Have to read more on the differences with double...

View Article

Help with simple script to remove subfolders from directory structure

I am trying to clear the ‘Downloads’ folder from all of our user profiles, the structure is: \\server\share\UPMProfiles\username1\UPM_Profile\Downloads...

View Article

Reply To: Write-DfsrHealthReport on server 2008R2

Thanks Don.

View Article


Reply To: Help with simple script to remove subfolders from directory structure

You could use the wildcard and pipe the results to Remove-Item. dir \\server1\c$\users\*\downloads\* | where LastWriteTime -lt $cutoff | rm -Confirm In this example, I removed files. But you could...

View Article


Reply To: alright im breaking down, I need logic help…possibly other...

Your function looks like a good effort, but there are a number of things wrong with it and a number of best practices that aren’t being followed. There’s no reason to use BEGIN/PROCESS since you’re...

View Article

Reply To: Installing .MSU Via Powershell & PSexec

you definitely have an issue with connecting to some of those machines in that case. you’re going to have to sort that out before continuing on. to troubleshoot the issue with running the package, i...

View Article

Need help with Powershell Command

Hello, I am new with powershell and I need some help with command. Here is my data: Diagnostic data directory path (DIAGPATH) = c:\users\db2admin\ What I am want to get the value after the = sign, the...

View Article

Reply To: Group Resource encrypted credentials issue

Done. https://connect.microsoft.com/PowerShell/feedback/details/868951/dsc-encrypted-credentials-generic-error Thanks again for the help.

View Article


Server 2012 R2, The 70-410 Test and Powershell

At the end of the month I am taking for a second time the 70-410 test. Most of the questions were directed towards Powershell. I am watching the Virtual Academy videos from Microsoft. They are good. I...

View Article

Reply To: Server 2012 R2, The 70-410 Test and Powershell

To be honest with you, just learn PowerShell. Learn it for your career and then you’ll have no trouble passing whatever PowerShell questions they throw at you on a certification test. I wrote a blog...

View Article


Reply To: Need help with Powershell Command

Hello, you can use the Split method of System.String, ie: (db2 get dbm cfg | select-string -Pattern DIAGPATH|? {-not($_ -match “ALT_DIAGPATH”)}).Split(“=”)[1] and in your case even (db2 get dbm cfg |...

View Article

Mapping network drive on remote PC

Hi Everyone, Having a little trouble getting this to work. I am just beginning in powershell so forgive me if the question is stupid. I can create a local mapped drive just fine with PS-drive. But...

View Article


Reply To: Mapping network drive on remote PC

When you remote into a computer, you create your own login session. Anything you do there is for YOU, not for other users of that computer. Windows is inherently a multi-user operating system, and...

View Article

Reply To: Mapping network drive on remote PC

ok, thanks. Ya, we have plenty of login scripts and GPP, but users tend to map lots of drives on there own and when their systems needs to be rebuilt from a crash then we need to map the drives. Just...

View Article

Reply To: Help with simple script to remove subfolders from directory structure

# Remember to remove -Whatif parameter when you’re ready to actually delete them Get-ChildItem \\server\share\UPMProfiles\*\UPM_Profile\Downloads\*.* | ForEach-Object {Remove-Item $_.Fullname -WhatIf}...

View Article
Browsing all 13067 articles
Browse latest View live