[xpost]CowsaySharp – A C# Port
I’ve developed a C# port of cowsay, including a PowerShell cmdlet. The main post for the announcement is at https://www.reddit.com/r/csharp/comments/4y9095/cowsaysharp_a_c_port/, but if you want to...
View Article[help] is there apowershell script that could tell me when was the windows os...
I need to know when was the last time windows 7 was installed, can anyone help me with that…. i know nothing about powershell or programing, but i’m going to try to learn it. submitted by /u/nachumama...
View ArticleNumbering the output in a PS1 script (question)
I need a little help with this, I’m trying to make a basic menu system within powershell that will get a list of files which are bat/ps1 and list them, number them and finally let me select and run...
View ArticleWho is the Mystery Guest tonight, and what might they anounce?
submitted by /u/srya [link] [comments] The post Who is the Mystery Guest tonight, and what might they anounce? appeared first on How to Code .NET.
View ArticlePowershell script that scans every x minutes and if there is a new...
Say I have a folder in D:/Thisfolder (also at serverthisfolder) If I insert a “newfolder” in there ( D:/Thisfolder/newfolder) or a new file hello.txt, for the folder I should set the folder...
View ArticlePowershell in Docker
submitted by /u/manojlds [link] [comments] The post Powershell in Docker appeared first on How to Code .NET.
View ArticleHow to obtain software (not Windows) patch versions?
Hi, I am using the following as an example for a utility I am using to inventory a bunch of servers. One thing that I need is to get to the software patches. For example, if ABC Software is showing...
View ArticleScript works in POSH V4…not in V5
I upgraded to powershell v5 today, and this script stopped working. I verified it works on other machines with V4 installed: $UserID = "user" $ie = New-Object -ComObject 'internetExplorer.Application'...
View ArticleSet-OutlookSignature
I had to touch this script again due to some changes with a 2016 install. It installed the reg keys in HKLM instead of HKCU Updated with those changes. http://pastebin.com/Dk9PW03B Any questions hit...
View Articledelete all versions of software
Hi, I’m trying to script a way to find all uninstall keys of java, then using the msi code to uninstall. the script works in identifying the proper keys, however sometimes the key is msiexec.exe /i...
View ArticlePowershell command to copy items with like
looking for a little assistance to use copy-item (path) then destination. But I am having trouble copying that Item using -like or -contains. I only want to copy specific items in that folder with...
View ArticlePS Linux/Mac Install-Module
Has anyone been able to install modules yet? In the youtube announcement they demo’d the Azure and AzureRM modules but installing on Mac OS X 10.11 gives a “Unable to find package providers” error...
View ArticlePS-Seasions or Bits for this?
I’m needing to copy a 200MB file from up to 500 computers each night over to an SMB share, then return the file the next day (OS upgrades, SCCM guys weren’t willing to alter their process). My...
View ArticleDead-simple – HTML based popup Window
submitted by /u/tiberriver256 [link] [comments] The post Dead-simple – HTML based popup Window appeared first on How to Code .NET.
View ArticleWhat do your remote connectivity settings look like?
Currently when I setup a server for remote access I only run winrm quickconfig. As I have become better with powershell I am considering changing that approach. So that said: Did you use winrm...
View ArticleSearching for computer objects (server only) that are NOT a member of certain...
I’m trying to get all servers that are not a member of any WSUS ad group. There are multiple WSUS ad groups to check and make sure the object isn’t in. I’m finding it difficult to get through multiple...
View ArticleQuick, Stupid, Error Question
Hey all, hopefully this is a quick stupid question with an easy answer. I attempted to do some googling, but I think my searches were a bit too vague to return the exact answers I need. I’m trying to...
View ArticleLooking up values provided in one CSV in another CSV, then exporting filtered...
I’ve been working with PowerShell for a few days now, but I’m at a loss coming up with a way to accomplish what I want to do. Using a hypothetical example, let’s say I have a CSV (let’s call it...
View ArticleForeach in array then appending result to another array.
# Adjust this according to your inactivity policy $Date = (Get-Date).AddDays(-30) $SearchBases =...
View ArticleWindows PowerShell is now “PowerShell”: An Open Source Project with Linux...
submitted by /u/PowerShellChallenge [link] [comments] The post Windows PowerShell is now “PowerShell”: An Open Source Project with Linux support – How did we do it? appeared first on How to Code .NET.
View Article