Quantcast
Channel: /r/powershell – How to Code .NET
Browsing all 8793 articles
Browse latest View live

PoshBot – A PowerShell based bot framework

For those folks interested in ChatOps or bots in general, I recently released PoshBot which is a bot framework written entirely in PowerShell (mostly classes). PoshBot can import any normal PowerShell...

View Article


Remove HKCU Registry Keys of Multiple Users with PowerShell

submitted by /u/_Unas_ [link] [comments] The post Remove HKCU Registry Keys of Multiple Users with PowerShell appeared first on How to Code .NET.

View Article


looking for a some help with pdf compression

I have to transfer a pdf file from one server to another however I noticed that the pdf is 30 MB which in my opinion is way to large now I put it through a online pdf crompression and it came out less...

View Article

Text Editor – Creating new file on a Mac without Terminal

submitted by /u/bigmikegamesllc [link] [comments] The post Text Editor – Creating new file on a Mac without Terminal appeared first on How to Code .NET.

View Article

Managed to make a GUI but…

I used an online PS GUI editor which seemed simple enough but i have a couple of problems. 1) How do i add an image to the button? Im assuming there is another line i need to add?, the image will be...

View Article


Recorded webinar: Deploying VMs in Hyper-V 2016 using PowerShell and...

submitted by /u/darkjstr [link] [comments] The post Recorded webinar: Deploying VMs in Hyper-V 2016 using PowerShell and PowerShell Direct. appeared first on How to Code .NET.

View Article

Want a reliable method to run a remote command as the logged in user and see...

I’m trying to figure out if a GPO change I made has propagated to all my PCs. I need to use Get-PSDrive to find the answer. I figure this is not possible with pure PowerShell so I’m here to ask how...

View Article

Simple file copy issue

So I just want to copy a file from my PC to a users remote PC. This works: Copy-Item -Path “C:backup.bat” -Destination “$targetnameoripc$usersuseriddesktop” This does not. Copy-Item -Path...

View Article


Looking for old submission

Someone submitted a script last year I think where when you used elevated permissions (Admin rights or UAC) a little text box opened and asked for a reason then wrote a windows event. Does anyone have...

View Article


An empty pipe element is not allowed

$computers = Get-Content .Computerlist.txt $computerSystem = Get-CimInstance CIM_ComputerSystem $computerBIOS = Get-CimInstance CIM_BIOSElement $computerOS = Get-CimInstance CIM_OperatingSystem...

View Article

Is the a PS Discord (or equivalent) chat?

For those who are impatient like me and want a bit more instant gratification. If there isn’t I would be happy to make one if people think it would be helpful.. submitted by /u/nkasco [link]...

View Article

Alternative to Pipe?

is it possible to do the following but without using pipe? Get-ItemProperty HKLM:SoftwareMicrosoftWindowsCurrentVersionUninstall* | select-object DisplayName, Publisher, InstallDate I tried ¬ $i =...

View Article

Home folder share script problem

Hey Guys quick question: Working on a project for school, and I’m running into an issue with setting up user’s home folders. I use this script to set the path in the user profile page: Get-ADUser...

View Article


Win10 Creators Update – Anyone know of any scripts that fix the Win+X menu so...

The Creators Update replaced a lot of the options in the Win+X menu with the inferior UWP Settings versions of them, particularly replacing “Programs and Features” (appwiz.cpl) with the Apps part of...

View Article

Back to the Frontend | A PowerShell-Electron Demo

submitted by /u/Xainey [link] [comments] The post Back to the Frontend | A PowerShell-Electron Demo appeared first on How to Code .NET.

View Article


One Office 365 Connection Script to Rule the World (includes Azure AD)

Greetings all, I have searched far and wide across Middle Earth for a single Office 365 connection script that also connects to ALL Office 365 services, including Azure Active Directory and Azure...

View Article

Query – get Powershell Scripts onto remote computer C:drive, without remoting...

Hi guys, I am a PowerShell noob. I like to dip and dab in PowerShell, mainly automating simple tasks I’m to lazy to do in the gui. I recently created a script which will remove and then automatically...

View Article


Importing Module Classes: The ‘M’ in .psm1 is for “Magic” (Get-PowerShellBlog...

submitted by /u/markekraus [link] [comments] The post Importing Module Classes: The ‘M’ in .psm1 is for “Magic” (Get-PowerShellBlog /u/markekraus) appeared first on How to Code .NET.

View Article

Powershell over command-line?why

In latest “windows creator update” windows moved lot into powershell from command-line?Is there any reason behind that changes? submitted by /u/pksivanantham [link] [comments] The post Powershell over...

View Article

Image may be NSFW.
Clik here to view.

Performance counters – blank

Hi guys, Whenever I run the following script, I always end up with blank CounterValue results from the ‘Add-member’ line. If I run the command from $Result, I get the value, but these never appear in...

View Article
Browsing all 8793 articles
Browse latest View live