Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Browsing all 6937 articles
Browse latest View live

Getting number of shares and files in share from a windows 2003 server

i have been tasked to get number of shares and number of files in each share on a Windows 2003 server. Where do i begin? i am not well versed when it comes to powershell.Any constructive advice is...

View Article


PowerShell Increasingly Being Used To Hide Malicious Activity

Data from 1,100 security investigations shows PowerShell was used in 38 percent of cyberattacksRead More

View Article


Malware Created with Microsoft PowerShell Is on the Rise

Microsoft's PowerShell task automation framework is becoming one of the most popular tools for coding and enhancing malware, a Carbon Black study has discovered.Read more

View Article

Bash on Windows, Powershell and Docker: Why Microsoft is calling time on the...

It's been a long time coming, but at its Build 2016 developer conference Microsoft unveiled two tools that finally put the nails in the coffin of the server GUI. And it's about time too.Read More

View Article

PowerShell: Granting Computer Join Permissions

The principle of least privilege, as applied to Active Directory (AD), means that users should be granted only the minimum permissions necessary to complete their job functions. The larger the...

View Article


Get-vminfo from multiple virtual center using parallel process to...

Hello Everyone, I am looking for a solution where I want to fetch details from Multiple Virtual centers.If I want to get VM information from multiple VC with the normal foreach VC loop it takes long...

View Article

Using Switch Break

I'm not sure how this forum works....I have a post on this subject matter already but I've already marked it as "answered" so I'm not sure if those get checked.   But.... I'm having issues with this...

View Article

Image may be NSFW.
Clik here to view.

Extract account settings from Outlook account settings

Hi folks. i'm posting this to this general section because this is not exactly Exchange server related but more local workstation related.I'm trying to extract information from Outlook 2010 | Account...

View Article


auduitpol into html report

I'm trying to put up together a report that amongst other things will check on settings of the Audit policy using auditpol. I use the following$settins =@()foreach($folder in $folders){$settins +=...

View Article


Microsoft: Step-By-Step: Deploying a Domain Joined Nano Server via PowerShell

Recently I’ve put together a PowerShell module called DeployImage with the intent to simplify the deployment of a WindowsIMage file.  In this case, my goal was to make NanoServer an easily deployable...

View Article

Number of active users in active directory

How do I get the number of active users in active directoryShould  I use get-aduser ?How would I powershell script it to get active users?

View Article

extract data from event log

I can get errors from the event log like this: Get-Eventlog system -Newest 1000  -ComputerName $Machine | where {$_.entryType -Match "Error"}   this gives me errors but not from the location I need.  I...

View Article

Create small inventory and push to SQL after login to workstation

Hello, im writing an a Login Script that gets some Computer Information and pushes the Information to a SQL Express Database, every time a user logs on to the SystemSo I can grab the Information with...

View Article


How to Consume The Github API With PowerShell

PowerShell is a versatile and powerful command-line shell and associated scripting language developed by Microsoft on the .NET framework. It was designed to help with configuration management and task...

View Article

Installing SQL Server Express and Restoring a Database With Powershell

Here’s a powershell script to install SQL Server Express Edition and restore a database from a commmandline.  It’s intended to be used as part of an installation script for an application that needs a...

View Article


PowerShell Remoting Security Considerations

PowerShell Remoting is the recommended way to manage Windows systems. PowerShell Remoting is enabled by default in Windows Server 2012 R2. This document covers security concerns, recommendations, and...

View Article

How to Use PowerShell DSC to Prepare a Data Drive on an Azure VM

I was asked how to automate formatting a data drive on an Azure VM. The drive had been provisioned already when the infrastructure was created via ARM script, however the disk was raw.Read More

View Article


Remove a role using PowerShell

Q. How can I remove a role from a user or group using PowerShell?Read More

View Article

Windows PowerShell and Google Docs Abused to Spread Laziok Trojan

Attackers deployed Laziok as a reconnaissance toolRead More

View Article

New FAREIT Strain Abuses PowerShell

In 2014, we began seeing attacks that abused the Windows PowerShell. Back then, it was uncommon for malware to use this particular feature of Windows. However, there are several reasons for an attacker...

View Article
Browsing all 6937 articles
Browse latest View live