Showing posts with label WIndows. Show all posts
Showing posts with label WIndows. Show all posts

Tuesday, February 21, 2023

Add disk image to Windows OS on Proxmox

 


1) Enter into the Proxmox console

2) Select the VM -> Hardware -> Add -> Hard Disk:



3) Configure the new disk image:

1. Select the type of disk, usually, it is the same type of existing disk by VM (Virtual Machine)

2. Select the storage where the disk image should be placed

3. Define the size of the disk

4. Add the disk image

4) Stop (Shutdown) and Start the VM to apply changes


5) The disk should be exposed in the Windows Computer management


There it can be made Online, Added with labels and letters, and formatted 


Wednesday, May 18, 2022

Last users’ login data with PowerShell


Get-ADUser -Identity username -Properties "LastLogonDate"

output:

DistinguishedName : CN=SomeName,CN=SomeGroup,DC=DomainName,DC=local
Enabled           : True
GivenName         : AccountName
LastLogonDate     : 7/18/2022 7:48:24 PM
Name              : AccountName
ObjectClass       : user
ObjectGUID        : 2d348557-ff9b-4452-8f3b-96e820df570s
SamAccountName    : AccountName
SID               : S-1-5-21-453637392-373859473-1311905769-2573
Surname           :
UserPrincipalName : AccountName@DomainName.local

or it is the PowerShell command with filter:

Get-ADUser -Identity username -Properties LastLogon | Select Name, @{Name='LastLogon';Expression={[DateTime]::FromFileTime($_.LastLogon)}}

output:

Name  LastLogon
----  ---------
AccountName 7/18/2022 8:51:00 PM

Add disk image to Windows OS on Proxmox

  1) Enter into the Proxmox console 2) Select the VM -> Hardware -> Add -> Hard Disk: 3) Configure the new disk image: 1. Select th...