Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-NTFSAccess -Path C:\\SYSVOL
Get-Command -Module ActiveDirectory
Restart-Service -Name 'WinRM'
Get-Content C:\\Scripts\\deploy.ps1
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-NetIPAddress
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-NetIPAddress
Get-SmbSession
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Start-Sleep -Seconds 10
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-NetIPAddress
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-Process | Where-Object {.CPU -gt 100}
Get-NetFirewallProfile
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Start-Sleep -Seconds 10
Get-NTFSAccess -Path C:\\SYSVOL
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Test-Connection -ComputerName dc01.novatech.local
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-EventLog -LogName Application -Newest 50
Restart-Service -Name 'WinRM'
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Import-Module ActiveDirectory
Get-ChildItem -Recurse C:\\Scripts\\
Get-LocalGroupMember -Group 'Administrators'
Get-ScheduledTask
Restart-Service -Name 'WinRM'
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Write-Host 'Operation terminée'
cls
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-NTFSAccess -Path C:\\SYSVOL
Get-Command -Module ActiveDirectory
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Set-Location C:\\Temp
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-SmbShare
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-NetFirewallProfile
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-SmbShare
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-Credential
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
New-Item -Path C:\\Temp -ItemType Directory
Set-Location C:\\Temp
Get-Service | Where-Object {.Name -like '*crypt*'}
cls
Get-SmbSession
Restart-Service -Name 'WinRM'
Get-NetFirewallProfile
Set-Location C:\\Temp
Remove-Item C:\\Temp\\old_log.log -Force
Get-EventLog -LogName Application -Newest 50
Get-ADGroupMember 'Domain Admins'
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-NetIPAddress
Get-ScheduledTask
Get-NTFSAccess -Path C:\\SYSVOL
Set-Location C:\\Temp
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Start-Sleep -Seconds 10
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-ProcessMitigation -Name powershell.exe
Remove-Item C:\\Temp\\old_log.log -Force
Get-ChildItem -Recurse C:\\Scripts\\
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-Service | Where-Object {.Status -eq 'Running'}
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Test-NetConnection google.com
Get-ScheduledTask
Get-ADServiceAccount -Filter * -Properties *
New-Item -Path C:\\Temp -ItemType Directory
cls
hostname
Get-ADGroup -Filter *
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
New-Item -Path C:\\Temp -ItemType Directory
Import-Module ActiveDirectory
Get-NetIPAddress
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-Command -Module ActiveDirectory
Get-Credential
Get-ChildItem -Recurse C:\\Scripts\\
Get-Service | Where-Object {.Name -like '*crypt*'}
systeminfo
Get-Content C:\\Scripts\\deploy.ps1
Get-ProcessMitigation -Name powershell.exe
Get-ADOrganizationalUnit -Filter *
Get-WmiObject Win32_OperatingSystem
Get-ProcessMitigation -Name powershell.exe
Get-Credential
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-ProcessMitigation -Name powershell.exe
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-NTFSAccess -Path C:\\SYSVOL
cls
Get-LocalGroupMember -Group 'Administrators'
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-Command -Module ActiveDirectory
