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

Reply To: Executing Powershell Scripts from Linux Servers

I did look at installing ssh server on windows, but most of the good ones requires buying a commercial ssh server for windows. But like to know if there is any other solution other than hosting...

View Article


Reply To: PowerShell Logging.

OK i will check it out, many thanks.

View Article


Reply To: Executing Powershell Scripts from Linux Servers

You could set up a Windows 2012 server and use PowerShell Web AccessI presented on this at the Powershell Summit this year http://www.youtube.com/watch?v=EloMKpvfES8&noredirect=1If you look...

View Article

Reply To: Executing Powershell Scripts from Linux Servers

(You may not have seen Snover actually executing PowerShell scripts from Linux – he modifies his PowerShell prompt to make it look like a Bash prompt, but it’s still PowerShell and it’s still running...

View Article

Reply To: Executing Powershell Scripts from Linux Servers

Thanks all. Makes sense. Appreciate the quick response.

View Article


Create new directory and append the log file using powershell

Hi guys,I’m trying to find the log firectory location by connecting to SQL database and store the log file in that location.We have standard log directory with naming convention. After i get the...

View Article

Reply To: Create new directory and append the log file using powershell

Hi Robin,The error you’ve posted doesn’t appear to have anything to do with the attached script, which has no calls to Out-File.Focusing just on what you’ve attached, I can see a few apparent...

View Article

Built in SSH Client Cmdlets and Workflow

I like to run a powershell script that ssh to many linux & freebsd servers and run some ssh commands through some workflow, what is the best cmdlet to use?Also can you point me to some good...

View Article


Reply To: Built in SSH Client Cmdlets and Workflow

There aren’t any native cmdlets in PowerShell for working with SSHThe only cmdlets I know of that work with SSH are from /n software http://www.nsoftware.com/download/Default.aspxselect the /n software...

View Article


Reply To: lock on log files

solved, i had email attachemnt in function that need the dispose method and locked the file

View Article

It is possible to replace "\"

Hello together I habe a array which contains “\Hofdo” and i want to replace the “\” with “” but if i try to replace it with the code: $Owner -replace "\", "" it doesn’t workHow can i replace it ?

View Article

Reply To: It is possible to replace "\"

PowerShell’s -replace operator takes a regular expression as the first argument, and backslashes are special characters. On a side note, when the second argument is an empty string, it’s optional, so...

View Article

Reply To: It is possible to replace "\"

thanks

View Article


Reply To: Services using Domain admin account

You’re overwriting ServerList.htm every time through the loop with that call to Out-File. What you’re probably looking to do is something more like this (moving the calls to ConvertTo-Html and Out-File...

View Article

Reply To: It is possible to replace "\"

Hello again i try to find out the E-Mail-adress from an owner of a folder. I have a list with Owner of folders and i have already a script where i can search the e-mail of a single person but i want to...

View Article


Reply To: Services using Domain admin account

Thank you, thank you.. I’ve been troubleshooting this for 3 days with someone on the microsoft TechNet forum, and you fix it in 5 or less minutes.. I notice the Microsoft guy was a beginner, but hey,...

View Article

WMI Access Denied

Hi All,I am trying to get a simple get-wmiobject win32_process from a machine in the domanin, but using a different credential $credential = New-Object System.Management.Automation.PSCredential...

View Article


Comparing dates and then archive files greater than 14 days

Hello all Need some help please. I need to retrieve the contents of various folders and then check the lastWriteTime. If it is greater than 14 days old I need to move the item into an archive folder. I...

View Article

Get-ADGroupMember with all user properties

how do i get for each user in the group which i get from “Get-ADGroupMember”, all the properties of the user which the “Get-ADGroupMember” dont return?

View Article

Reply To: Get-ADGroupMember with all user properties

You would most likely use a Foreach loop to enumerate each user, and retrieve their full user object from the directory.

View Article
Browsing all 13067 articles
Browse latest View live