@@ -740,23 +740,23 @@ private static PSObject AddProperties(nint scManagerHandle, ServiceController se
740740 }
741741
742742 PSObject serviceAsPSObj = PSObject . AsPSObject ( service ) ;
743- PSProperty noteProperty = new ( "UserName" , startName ) ;
743+ PSNoteProperty noteProperty = new ( "UserName" , startName ) ;
744744 serviceAsPSObj . Properties . Add ( noteProperty , true ) ;
745745 serviceAsPSObj . TypeNames . Insert ( 0 , "System.Service.ServiceController#UserName" ) ;
746746
747- noteProperty = new PSProperty ( "Description" , description ) ;
747+ noteProperty = new PSNoteProperty ( "Description" , description ) ;
748748 serviceAsPSObj . Properties . Add ( noteProperty , true ) ;
749749 serviceAsPSObj . TypeNames . Insert ( 0 , "System.Service.ServiceController#Description" ) ;
750750
751- noteProperty = new PSProperty ( "DelayedAutoStart" , isDelayedAutoStart ) ;
751+ noteProperty = new PSNoteProperty ( "DelayedAutoStart" , isDelayedAutoStart ) ;
752752 serviceAsPSObj . Properties . Add ( noteProperty , true ) ;
753753 serviceAsPSObj . TypeNames . Insert ( 0 , "System.Service.ServiceController#DelayedAutoStart" ) ;
754754
755- noteProperty = new PSProperty ( "BinaryPathName" , binPath ) ;
755+ noteProperty = new PSNoteProperty ( "BinaryPathName" , binPath ) ;
756756 serviceAsPSObj . Properties . Add ( noteProperty , true ) ;
757757 serviceAsPSObj . TypeNames . Insert ( 0 , "System.Service.ServiceController#BinaryPathName" ) ;
758758
759- noteProperty = new PSProperty ( "StartupType" , startupType ) ;
759+ noteProperty = new PSNoteProperty ( "StartupType" , startupType ) ;
760760 serviceAsPSObj . Properties . Add ( noteProperty , true ) ;
761761 serviceAsPSObj . TypeNames . Insert ( 0 , "System.Service.ServiceController#StartupType" ) ;
762762
0 commit comments