New-Item -Path C:\\Temp -ItemType Directory
New-Item -Path C:\\Temp -ItemType Directory
Get-ADOrganizationalUnit -Filter *
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-ProcessMitigation -Name powershell.exe
Get-WmiObject Win32_OperatingSystem
Get-Content C:\\Scripts\\deploy.ps1
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-HotFix -Id KB5005565
Disconnect-PSDrive Z
Get-NTFSAccess -Path C:\\SYSVOL
Get-ADComputer -Filter *
Get-NetIPAddress
Import-Module ActiveDirectory
Get-ADServiceAccount -Filter * -Properties *
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Test-Connection -ComputerName dc01.novatech.local
Get-ADOrganizationalUnit -Filter *
Write-Host 'Operation terminée'
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ScheduledTask
hostname
Set-Location C:\\Temp
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
ipconfig /all
ipconfig /all
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-Service -Name WinRM | Format-List *
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-Service | Where-Object {.Status -eq 'Running'}
Get-NetFirewallProfile
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-ADComputer -Filter *
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-NTFSAccess -Path C:\\SYSVOL
Remove-Item C:\\Temp\\old_log.log -Force
Get-ADGroupMember 'Domain Admins'
Get-Process -Name powershell
Get-Content C:\\Scripts\\deploy.ps1
Get-SmbOpenFile
Write-Host 'Operation terminée'
Test-Connection -ComputerName dc01.novatech.local
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-WmiObject Win32_OperatingSystem
Get-ADUser svc_backup -Properties lastLogonTimestamp
Restart-Service -Name 'WinRM'
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-Credential
Get-EventLog -LogName Application -Newest 50
New-Item -Path C:\\Temp -ItemType Directory
Get-NetIPAddress
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-LocalGroupMember -Group 'Administrators'
Get-HotFix -Id KB5005565
Get-CimInstance -ClassName Win32_QuickFixEngineering
Restart-Service -Name 'WinRM'
Get-LocalGroupMember -Group 'Administrators'
Get-Date
Get-WmiObject Win32_OperatingSystem
Get-Process -Name powershell
whoami
Restart-Service -Name 'WinRM'
Get-ADServiceAccount -Filter * -Properties *
Get-ADUser -Filter 'Enabled -eq True'
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Write-Host 'Operation terminée'
Get-NTFSAccess -Path C:\\SYSVOL
Set-Location C:\\Temp
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
whoami
Get-Credential
Remove-Item C:\\Temp\\old_log.log -Force
Get-NTFSAccess -Path C:\\SYSVOL
systeminfo
hostname
Get-NTFSAccess -Path C:\\SYSVOL
Get-Process -Name powershell
Get-Service -Name WinRM | Format-List *
cls
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-NetFirewallProfile
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-NTFSAccess -Path C:\\SYSVOL
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Remove-Item C:\\Temp\\old_log.log -Force
Set-Location C:\\Temp
Get-EventLog -LogName System -Newest 50
Get-EventLog -LogName System -Newest 50
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Disconnect-PSDrive Z
Get-Process -Name powershell
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
ipconfig /all
Get-ADPrincipalGroupMembership svc_backup
Get-ADUser -Filter 'Enabled -eq True'
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-ChildItem -Recurse C:\\Scripts\\
Get-Service | Where-Object {.Status -eq 'Running'}
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Test-NetConnection google.com
whoami
Get-Date
Disconnect-PSDrive Z
Restart-Service -Name 'WinRM'
Get-ADComputer -Filter *
Get-ADUser -Filter 'Enabled -eq True'
Get-ChildItem -Recurse C:\\Scripts\\
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-SmbOpenFile
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Remove-Item C:\\Temp\\old_log.log -Force
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
whoami
Get-CimInstance -ClassName Win32_QuickFixEngineering
