SinjinSmith.Net

Random things that I have learned . . .

  • About

PowerShell TBA

Posted by admin on October 30, 2017
Posted in: Uncategorized.

Connect to a remove server:

Enter-PSSession {servername}
#prompt should change to name of server after logging in

 

Create a network share:

New-Item -Path E:\Share1 -ItemType Directory
New-SmbShare -Name Share1 -Path E:\share1
Grant-SmbShareAccess -Name Share1 -AccountName CORP\Joe.Smith -AccessRight Full -Confirm:$false

 

===========================
Best Practice Analysis through PowerShell

Get list of bpa models
——————————–
Get-BpaModel | Format-Table Id, Name, LastScanTime -AutoSiz

Install BPA model
——————————
get-bpamodel microsoft/windows/dnsserver

Run BPA model
———————
invoke-bpamodel microsoft/windows/dnsserver

View BPA results
—————————-
get-bparesult microsoft/windows/dnsserver

 

 

Posts navigation

← Install OpenVAS on Kali Linux 2017.1
  • Recent Posts

    • PowerShell TBA
    • Install OpenVAS on Kali Linux 2017.1
    • Updated Cable Modem Baseline
    • Cable Modem Baseline Stats
    • WPA2 Dictionary Attack
  • Recent Comments

    • Archives

      • October 2017
      • May 2017
      • March 2017
      • October 2016
      • March 2016
      • January 2016
      • June 2015
      • March 2015
      • February 2015
      • January 2015
      • December 2014
      • November 2014
      • October 2014
      • May 2014
      • September 2013
    • Categories

      • Linux OS
      • Metasploit
      • Microsoft Windows
      • Random Thoughts
      • Raspberry Pi
      • Rubber Ducky
      • Security
      • Uncategorized
    • Meta

      • Log in
      • Entries feed
      • Comments feed
      • WordPress.org
    Proudly powered by WordPress Theme: Parament by Automattic.