返回顶部
首页 > 资讯 > 后端开发 > Python >SMS、OSD和Bitlocker(3)
  • 547
分享到

SMS、OSD和Bitlocker(3)

SMSOSDBitlocker 2023-01-31 01:01:31 547人浏览 薄情痞子

Python 官方文档:入门教程 => 点击学习

摘要

Moving the system files and rebooting So by this time we have two partitions on the disk and the OSD process is running.

Moving the system files and rebooting

So by this time we have two partitions on the disk and the OSD process is running. Any custom tasks you  have defined, including installing applications happen in this stage. Before this stage completes we need to do two things;
现在我们已经有了两个分区,而OSD也在运行。任何你定义的任务,包括安装软件都在这个阶段执行。在这个阶段完成前我们需要做两件事
  1. move the boot files to the system partition 把引导文件放入系统分区
  2. configure the system to reboot and initialise BitLocker. 配置系统重启并初始化Bitlocker
The modified BDE script (ZTIBdeOSD.wsf) does not try to start BitLocker - it just moves the boot files across to the BitLocker partition. It then asks for a reboot - you will see errors in the BDD log files saying that OSD has suppressed the reboot.
修改过的BDE脚本(ZTIBdeOSD.wsf)并不尝试启动Bitlocker,仅仅把引导文件放到Bitlocker的分区中。接着请求重启,你会看到BDD.log中的错误报告
Next we need to re-boot from the new partition so BitLocker can be initiated.下面我们需要从新分区重启,因而Bitlcoker得以初始化
As mentioned I covered off the basics of how force a reboot in an earlier post - I'll outline the process again here as it has changed a little to accommodate more than just rebooting the system. The OSD part of a ZTI process runs before the system has logged on for the first time. So before we can reboot the system we need to loGon. However once we logon ZTI has completed and we no longer have the ZTI framework to rely on. So any scripts or files we need are going to have to be copied to the local hard disk for execution post re-boot. We essentially have three phases;
就如前面那篇blog中提到的如何强制重新启动,我会再次中断部署。ZTI的OSD部分在系统第一次登陆前运行。所以在那之前我们可以重启系统。尽管一旦我们登录,ZTI就结束而且我们不能再使用ZTI架构。因而结束前我们需要的脚本或者文件必须被拷贝到本地硬盘
  1. copy scripts locally and prepare for reboot
  2. auto-logon once OSD completes and reboot
  3. carry out post reboot tasks.
The script z-osdpart1.wsf copies the required files (z-OSDPart2.vbs, z-OSDPart3 and Buildwarning.HTA) locally and configures the auto-logon settings. Once OSD completes the system auto-logons, runs z-OSDpart2.vbs which configures the system to run z-OSDPart3.vbs after reboot and then z-OSDPart2.vbs initiates the reboot. Because ZTI has completed there is no minint directory to use we copy the required files to c:\OSDTemp, if we copied them to the c:\minint directory they would be deleted by the ZTI cleanup process.
Z-osdpart1.wsf拷贝所有需要的文件到本地,配置自动登录。一旦OSD完成系统自动登录,会运行z-OSDpart2.vbs,通过脚本2调用z-OSDpart3.vbs。因为ZTI完成后就没有了minint目录,我们把文件copy到C:\OSDTemp
The screen shot below shows the two tasks as part of a much larger task sequence. As you can see they are placed towards the end of the task sequence.
p_w_picpath
The zipped file, link at the end of this post, has a file TS-snippets.txt that contains these two steps that you can cut and paste into your task sequence.

 

Post Re-Boot

So the system should have rebooted and be running Z-OSDPart3.vbs as the shell. This is quite a simple script that carries out the steps required to initialise encryption of the hard disk. It runs the BuildWarning splash screen, ejects the optical disk, (this is required because if a bootable disk is left in the optical drive then BitLocker cannot start), then starts BitLocker, cleans out the auto-logon infORMation and resets the shell back to the normal desktop before rebooting.
现在系统应该重启过并且运行Z-OSDPART3.vbs作为shell。这个步骤十分简单,他运行必要的步骤来初始化硬盘加密。他运行BuildWarning splash screen、插入光学盘(?)这步是必须的,因为如果引导盘留在光学驱动器中,Bitlocker将无法启动,接着启动Bitlocker,清楚自动登录并在重启前重新设置shell回到默认桌面
 
We use the manage-bde.wsf script to initialise BitLocker once the system has restarted. For our client there was no requirement for a startup PIN - thy just wanted the hard disk encrypting and the recovery key stored in the Active Directory. We used a group Policy to make sure the BitLocker recovery passWord is stored in AD. The command line we used in Z-OSDPart3.vbs is given below. This turns on BitLocker on drive C: with a recovery password (-RP)
我们使用manage-bde.wsf脚本来初始化Bitlocker一旦系统重启。对客户端而言,并没有需要一个启动PIN,仅仅需要硬盘加密和存储在AD中的恢复key。我们使用组策略来确保Bitlocker恢复key保存在AD中。这个在Z-OSDPART3.vbs中使用的命令行如下所示,他开启了C盘的Bitlocer
cscript.exe %windir%\system32\manage-bde.wsf -On c: -RP
So now you should have a system that has been built using OSD and is BitLockerd. Simple wasn't it! ;-)

--结束END--

本文标题: SMS、OSD和Bitlocker(3)

本文链接: https://lsjlt.com/news/184009.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
  • SMS、OSD和Bitlocker(3)
    Moving the system files and rebooting So by this time we have two partitions on the disk and the OSD process is running....
    99+
    2023-01-31
    SMS OSD Bitlocker
  • bitlocker如何打开和取消
    这篇文章将为大家详细讲解有关bitlocker如何打开和取消,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。  Bitlocker是我们电脑上自带的一种加密服务,通过本地用软硬结合的方式来保护我们硬盘上的数...
    99+
    2023-06-06
  • ceph中如何删除和添加osd节点
    这篇文章主要介绍了ceph中如何删除和添加osd节点,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。在ceph中,数据是以PG为单位保存在osd中的,一般情况下一个osd会对应...
    99+
    2023-06-04
  • 3、zabbix_get和zabbix_
    Zabbix_get命令:zabbix_get是zabbix中的一个程序,用于zabbix-server到zabbix-agent获取数据。通常用来检测agent的配置是否正确。[root@localhost ~]# zabbix_get ...
    99+
    2023-01-31
    zabbix_get
  • Python 2 和 Python 3
      Guido(Python之父,仁慈的独裁者)在设计 Python3 的过程中,受一篇文章 “Python warts” 的影响,决定不向后兼容,否则无法修复大多数缺陷。---摘录自《流畅的Python》   你可能从来没有听说过学 J...
    99+
    2023-01-31
    Python
  • python2和3搭建,pip2和pip
    linux自带python2,手动安装python3,sudo apt-get install python3.5下载pip,安装到python2使用easy_install 安装pip;sudo python3 -m easy_insta...
    99+
    2023-01-31
    pip
  • int **a[3][4] 和 size
    BS的《C++编程》里面讲得很清楚,变量的申明,变量名称的后面部分比前面部分具有更强的约束力。所以,如下变量声明:int **a[3][4];表示“int **”类型的二维数组(“[]”比“int”和“*”更具有约束力)。这个二维数组共有1...
    99+
    2023-01-31
    int size
  • 3.安装PHP5和PHP7
    [toc] 11.10~11.2 安装PHP5 1.下载PHP5安装包并解压 [root@xavi ~]# cd /usr/local/src/ [root@xavi src]# wget http://cn2.php.net/dist...
    99+
    2023-01-31
  • Linux 用户和组 (3) userm
    linux下usermod命令详解命 令:usermod 功能说明:修改用户帐号。 语  法:usermod [-LU][-c <备注>][-d <登入目录>][-e <有效期限>][-f <缓冲天...
    99+
    2023-01-31
    用户 Linux userm
  • 1-3、ping 和tracert 命令
    C:\>ping 192.168.0.1 Pinging 192.168.0.1 with 32 bytes of data:Reply from 192.168.0.1: bytes=32 time=12ms TTL=64Rep...
    99+
    2023-01-31
    命令 ping tracert
  • JMS和ActiveMQ介绍(3)_Ac
    首先简单介绍一下ActiveMQ。ActiveMQ是由Apache软件基金会提供的开源免费消息服务器,目前版本是5.8.0。ActiveMQ具有以下特点:基于JMS 1.1和J2EE 1.4规范;支持多种连接协议:HTTP/S,IP组播,S...
    99+
    2023-01-31
    JMS ActiveMQ _Ac
  • 3、Jenkins升级和迁移
    一、Jenkins升级Jenkins的开发迭代非常快,每周发布一个开发版本,长期支持版每半年更新一次(ps:大版本更新)。如此频繁的更新,怎么升级呢?war:下载新版的war文件,替换旧版本war文件。重启即可。二进制:卸载旧版本,安装新版...
    99+
    2023-01-31
    Jenkins
  • Python 2.7.x 和 3.x 版
    python现在很火,最近花了些时间去了解了一下,最初了解的是2.7.x版本,感觉,从书写上是很不习惯,少了一双大概号,取而代之的是缩进;然后跟kotlin和swift一样省去了每行的分号,象我们这种分号强迫症的人真心的不习惯;还有!Tru...
    99+
    2023-01-31
    Python
  • Sublime Text 3 插件和py
      安装Python,设置环境变量 首先需要安装Python,访问地址https://www.python.org,下载Python,无脑点击下一步安装即可。 在CMD输入命令python,如果进入如图则表明Python安装成功: 如果...
    99+
    2023-01-31
    插件 Sublime Text
  • 微软发布 Windows 11 Beta 22621.1972 和 22631.1972 更新:修复 RAM、BitLocker 相关问题
    6 月 30 日消息,微软一如既往地向 Beta 频道推送了新的 Windows 11 测试版本,版本号升至 22621.1972 和 22631.1972。内部版本 22631.1972 = 推出新功能。内部版本 22621.1972 =...
    99+
    2023-07-15
  • python迭代和解析(3):range
    解析、迭代和生成系列文章:https://www.cnblogs.com/f-ck-need-u/p/9832640.html range range()是一个内置函数,它返回一个数字序列,功能和Linux下的seq命令差不多。 >...
    99+
    2023-01-30
    迭代 python range
  • Python 2和Python 3的区别
    原文转载自:http://www.pythontip.com/blog/post/13118/1.性能 Py3.0运行 pystone benchmark的速度比Py2.5慢30%。Guido认为Py3.0有极大的优化空间,在字符串和×××...
    99+
    2023-01-31
    区别 Python
  • 3.EVE-NG导入Dynamips和I
    文章列表(关注微信公众号EmulatedLab,及时获取文章以及下载链接)1、EVE-NG介绍(EVE-NG最好用的模拟器,仿真环境时代来临!)2、EVE-NG安装过程介绍3、EVE-NG导入Dynamips和IOL4、EVE-NG导入QE...
    99+
    2023-01-31
    EVE Dynamips NG
  • 3、Nginx关于server块和loc
    前面第2篇文章中列出了全局段、events段、http段的一些指令的意义和用法,这篇文章将介绍server段和location段的相关指令。server段配置listen:listen指令有三种配置方法:1、listen address[:...
    99+
    2023-01-31
    Nginx server loc
  • 3、Ansible配置文件和Invent
    如果是用RPM包方式安装的Ansible,那么安装完成后会生成以下文件:/etc/ansible                              ###存放ansible配置文件的目录/etc/ansible/hosts     ...
    99+
    2023-01-31
    配置文件 Ansible Invent
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作